<template>
  <el-dialog :title="title" :visible.sync="visible">
    <el-form :model="datas">
      <el-row :gutter="10">
        <el-col :span="12">
          <el-form-item label="活动名称" :label-width="baseStyle.width">
            <el-input v-model="datas.name" autocomplete="off"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="活动区域" :label-width="baseStyle.width">
            <el-select v-model="datas.region" placeholder="请选择活动区域">
              <el-option label="区域一" value="shanghai"></el-option>
              <el-option label="区域二" value="beijing"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="visible = false">取 消</el-button>
      <el-button type="primary" @click="visible = false">确 定</el-button>
    </div>
  </el-dialog>
</template>
<script>
export default {
  props: {
    baseStyle: Object,
    title: String,
    datas: {
      type: Object,
      default: function() {
        return { name: "", region: "" };
      }
    }
  },
  data() {
    return {
      visible: false
    };
  },
  created() {},
  computed: {},
  methods: {
    openDialog() {
      this.visible = true;
    }
  }
};
</script>